package com.project.design.factory.abstractFactory;

/**
 * 具体SRfarm 工厂
 */
public class SGfarm implements Farm {

    @Override
    public Animal newAnimal() {
        System.out.println("新马出生");
        return new Horse();
    }

    @Override
    public Plant newPlant() {
        System.out.println("蔬菜到货");
        return new Vegetables();
    }
}
